function fn() {
    var x = 1;
    if (x == '1') console.log('相等')
    if (x === '1') console.log('相等')
}

fn();

// 2